let Mock = require('mockjs')//也可以用ES6模块化语法，import引入

Mock.mock("/mock/banners", {
    code: 200,
    'data|5': [
        {
            'id|+1': 0,
            url: "@image('730x454',@color,'#fff','png', @cword)"
        }
    ]
})
import floors from './json/floor.json'
Mock.mock('/mock/floors', {
    code: 200,
    'data|2': floors
})
Mock.mock('/mock/sort', {
    code: 200,
    data: [
        { id: 0, type: 1, msg: '综合' },
        { id: 1, type: 2, msg: '综合' }
    ]
})
